/**
 * 检查是否登录了
 */
import {getToKen} from "./Token";

export function checkLogin(){
    const token = getToKen();
    if(!token) {
        const url = encodeURIComponent('http://blockhunter.group')
        window.location.href =
            'https://open.weixin.qq.com/connect/oauth2/authorize?' +
            'appid=wx4807447627f6db7b' +
            '&redirect_uri=' + url +
            '&response_type=code&scope=snsapi_base&state=123#wechat_redirect'
    }
}
